package scau.erps.view.business.team;

import java.awt.BorderLayout;

import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

/**
 * 小组与工作人员办理业务主窗口
 *  
 * @author DCJ
 *
 */
public class MyBusinessDialog extends JDialog{
	private static final long serialVersionUID = 1L;
	
	public MyBusinessDialog(){
		this.setTitle("我的业务");
		this.setSize(1024, 700);
		this.setResizable(false);
		this.setLocationRelativeTo(null);
		this.setDefaultCloseOperation(HIDE_ON_CLOSE);
		JPanel contentPanel = new JPanel();
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		MyLoanPanel loanPanel = new MyLoanPanel();
		MyOrderPanel orderPanel = new MyOrderPanel();
		MyMaterialPanel materialPanel = new MyMaterialPanel();
		MyEquipmentPanel equipmentPanel = new MyEquipmentPanel();
		tabbedPane.add(loanPanel,"贷款");
		tabbedPane.add(orderPanel,"订单");
		tabbedPane.add(materialPanel,"原材料");
		tabbedPane.add(equipmentPanel,"生产线");		
		contentPanel.add(tabbedPane, BorderLayout.CENTER);
		this.setContentPane(contentPanel);
		this.setModal(true);
		this.setVisible(true);
	}
}
